package com.shigu.trade.enums;

public enum TradeSendStatus {
    NOSEND (0,"未发货"),
    SEND(1,"已发货"),
    RECEIVE(2,"已收货"),
    RETREATING(3,"退货中"),
    RETREAT(4,"退货完成");

    public static TradeSendStatus selByValue(int value){
        for (TradeSendStatus status:TradeSendStatus.values()) {
             if(status.getValue() == value){
                 return status;
             }
        }
        return null;
    }

    TradeSendStatus(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    }
